﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using B10.Models.Validation;

namespace B10.Models
{
    public class ContactModel
    {
        [Required]
        [RegularExpression(@"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}", ErrorMessageResourceName = "WrongEmail",
            ErrorMessageResourceType = typeof(B10.Properties.ValidationMessages))]
        [DataType(DataType.EmailAddress)]
        [LocalizedDisplayName("EmailAddress")]
        public string Email { get; set; }


        [Required]
        [LocalizedDisplayName("Body")]
        public string Body { get; set; }
    }
}
